package com.dudu.service.impl;

import com.dudu.dao.BuildingMapper;
import com.dudu.domain.Building;
import com.dudu.service.BuildingService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by tengj on 2017/4/7.
 */
@Service
public class BuildingServiceImpl implements BuildingService {

    @Autowired
    BuildingMapper buildingMapper;

	@Override
	public List<Building> getAllBuilding() {
		// TODO Auto-generated method stub
		return this.buildingMapper.getAllBuilding();
	}

	@Override
	public Building getBuildingById(int id) {
		// TODO Auto-generated method stub
		return this.buildingMapper.getBuildingById(id);
	}
	

}
